﻿using System;
using System.Net;
using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class Block
    {
        #region Fields
        private string _increasePercentField;
        private string _percentField;
        private string _ratingField;
        #endregion
        #region Properties
        public string IncreasePercent
        {
            get
            {
                return this._increasePercentField;
            }
            set
            {
                this._increasePercentField = value;
            }
        }

        public string Percent
        {
            get
            {
                return this._percentField;
            }
            set
            {
                this._percentField = value;
            }
        }

        public string Rating
        {
            get
            {
                return this._ratingField;
            }
            set
            {
                this._ratingField = value;
            }
        }
        #endregion
        #region Constructor
        public Block(XElement element)
        {
            IncreasePercent = element.GetAttributeValue("increasePercent");
            Percent = element.GetAttributeValue("percent");
            Rating = element.GetAttributeValue("rating");
        }
        #endregion
    }
}
